﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindpowerService
{
    public static class Utils
    {
        public static int Last = 100;
        public static int GetRandomInt(int max = 10000)
        {
            
            Random r = new Random(Last);
            Last = r.Next(max);
            return Last;
        }

        public static long Uid = 0;

        public static long GetNewId()
        {
            Uid++;
            return Uid;
        }
    }
}
